package edu.scut.course_management.dto;

import java.util.List;

import edu.scut.course_management.po.Sections;

/**
 * 用于封装新增或修改后的课程所需信息的数据对象
 * @author thompson
 */
public class AddCourseDTO {
    private String title;
    private String courseTypeName;
    private String year;
    private String term;
    private Integer classHours;
    private Double credits;
    private String departmentName;
    private String teacherId;
    private List<String> studentId;
    private List<Sections> sections;


    

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getCourseTypeName() {
        return courseTypeName;
    }

    public void setCourseTypeName(String courseTypeName) {
        this.courseTypeName = courseTypeName;
    }

    public String getYear() {
        return year;
    }

    public void setYear(String year) {
        this.year = year;
    }

    public String getTerm() {
        return term;
    }

    public void setTerm(String term) {
        this.term = term;
    }

    public Integer getClassHours() {
        return classHours;
    }

    public void setClassHours(Integer classHours) {
        this.classHours = classHours;
    }

    public Double getCredits() {
        return credits;
    }

    public void setCredits(Double credits) {
        this.credits = credits;
    }

    public String getDepartmentName() {
        return departmentName;
    }

    public void setDepartmentName(String departmentName) {
        this.departmentName = departmentName;
    }

    public String getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(String teacherId) {
        this.teacherId = teacherId;
    }

    public List<String> getStudentId() {
        return studentId;
    }

    public void setStudentId(List<String> studentId) {
        this.studentId = studentId;
    }

    public List<Sections> getSections() {
        return sections;
    }

    public void setSections(List<Sections> sections) {
        this.sections = sections;
    }

    @Override
    public String toString() {
        return "AddCourseDTO {" + 
               "classHours=" + classHours + 
               ", courseTypeName=" + courseTypeName + 
               ", credits=" + credits + 
               ", departmentName=" + departmentName + 
               ", sections=" + sections + 
               ", studentId=" + studentId +
               ", teacherId=" + teacherId + 
               ", term=" + term + 
               ", title=" + title + 
               ", year=" + year + 
               "}";
    }
    

    public AddCourseDTO(String title, String courseTypeName, String year, String term, Integer classHours,
            Double credits, String departmentName, String teacherId, List<String> studentId, List<Sections> sections) {
        this.title = title;
        this.courseTypeName = courseTypeName;
        this.year = year;
        this.term = term;
        this.classHours = classHours;
        this.credits = credits;
        this.departmentName = departmentName;
        this.teacherId = teacherId;
        this.studentId = studentId;
        this.sections = sections;
    }

    public AddCourseDTO() {
        
    }

}